from PyQt5.QtWidgets import QMainWindow

app_widget = {"main_widget": None}


def set_widget(name: str, widget: QMainWindow):
    app_widget[name] = widget


def get_widget(name: str):
    return app_widget[name]


# Message Level in main widget

APP_NORMAL_MSG = 0
APP_WARNING_MSG = 1
APP_ERROR_MSG = 2
